//
//  MYConnectionUsDetailsVC.swift
//  MuYing
//
//  Created by tbb on 2019/8/19.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit

class MYConnectionUsDetailsVC: YQMYBaseViewController,UITextViewDelegate {

    @IBOutlet weak var agreementBtn: UIButton!
    @IBOutlet weak var conentTextView: UITextView!
//    @IBOutlet weak var adderLb: UILabel!
    @IBAction func agreementAction(_ sender: Any) {
        let vc = MYAgreementVC();
        self.navigationController?.pushViewController(vc, animated: true)
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        self.isNavShadow = true;
        self.navigationItem.title = kYQLSSwift("关于我们");
        self.conentTextView.showsVerticalScrollIndicator = false;
        self.conentTextView.delegate = self;
        self.conentTextView.backgroundColor = .white;
        self.agreementBtn.setTitle(NSString(format: "《%@》 《%@》", kYQLSSwift("服务协议"),kYQLSSwift("隐私申明")) as String , for: .normal) 
        YQPNetWorkingManager.sendGetRequest(kGET_SLIDESHOW_ABOUT_US_URL, parameters: nil, success: { (baseModel) in
            if baseModel.code == 0, let data:[String:Any] = baseModel.data as? [String : Any] {
                self.conentTextView.text = data["content"] as? String;
            }
        }) { (code, msg) in
            
        }
        
    }

    func textViewShouldBeginEditing(_ textView: UITextView) -> Bool {
        return false;
    }
    
}
